/*
 * @Author: xishanxu
 * @LastEditors  : xisuanxu
 * @LastEditTime : 2019-12-21 22:12:45
 */
import dashboardRoutes from './dashboardRoutes';
import oaRoutes from './oaRoutes';
import appRoutes from './appRoutes';
import message from './message';
import teachingSystem from './teachingSystem';
import applyManage from './applyManage';
import moneyRoutes from './moneyRoutes';

export default [
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    Routes: ['/src/pages/Authorized'],
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        authority: ['admin', 'user'],
        routes: [
          {
            path: '/',
            redirect: '/dashboard',
          },
          // 首页
          ...dashboardRoutes,
          // oa
          ...oaRoutes,
          // app
          ...appRoutes,
          //教学系统
          ...teachingSystem,
          //报名管理
          ...applyManage,
          // 财务系统
          ...moneyRoutes,
          //消息管理
          ...message,
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
];
